package webs.servlet.ServletDemoOne;
//演示Servlet的生命周期

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

@WebServlet("/demo2")
public class servletTest_Two implements Servlet
{
    @Override
    public void init(ServletConfig servletConfig) throws ServletException
    {
        System.out.println("init.....");
    }
    @Override
    public ServletConfig getServletConfig()
    {
        return null;
    }
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException
    {
        System.out.println("service.....");
    }
    @Override
    public String getServletInfo()
    {
        return null;
    }
    @Override
    public void destroy()
    {
        System.out.println("destory....");
    }
}
